Skip to content

feat: allow to pass additional HTTP headers in puppetdb requests#175

Merged
TheMeier merged 1 commit intoOpenVoxProject:mainfrom
TheMeier:puppetdb_header
Mar 12, 2026
Merged

feat: allow to pass additional HTTP headers in puppetdb requests#175
TheMeier merged 1 commit intoOpenVoxProject:mainfrom
TheMeier:puppetdb_header

Conversation

@TheMeier
Copy link
Contributor

This can be useful if you want to access PuppetDB via custom authentication. Eg if you want to access PuppetDB behind an API gateway that requires oauth tokens or other custom headers.

@TheMeier
Copy link
Contributor Author

No idea what is going on with the Windows tests. The just show This job failed nothing else

Copy link
Contributor

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested it, but the changes look good to me.

@TheMeier
Copy link
Contributor Author

works for me :D

BUNDLE_GEMFILE=/dev/openbolt/Gemfile bundle exec bolt plan run puppetdb_fact --targets myhost
Detected analytics configuration files at '/foo/.puppetlabs/bolt/analytics.yaml' and '/foo/.puppetlabs/etc/bolt/analytics.yaml'. Loading analytics configuration from '/foo/.puppetlabs/etc/bolt/analytics.yaml'. [ID: duplicate_analytics]
Starting: plan puppetdb_fact
Finished: plan puppetdb_fact in 0.23 sec
{
  "myhost": {
    "os": {
      "name": "Debian",
      "distro": {
        "id": "Debian",
        "release": {
          "full": "13.3",
          "major": "13",
          "minor": "3"
        },
        "codename": "trixie",
        "description": "Debian GNU/Linux 13 (trixie)"
      },
      "family": "Debian",
      "release": {
        "full": "13.3",

This can be useful if you want to access PuppetDB via custom authentication.
Eg if you want to access PuppetDB behind an API gateway that requires oauth tokens
or other custom headers.

Signed-off-by: Christoph Maser <christoph.maser@1und1.de>
@TheMeier TheMeier enabled auto-merge March 12, 2026 15:06
@TheMeier TheMeier merged commit 701df12 into OpenVoxProject:main Mar 12, 2026
49 checks passed
@bastelfreak bastelfreak added the enhancement New feature or request label Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants